<?php if ( \think\Hook::get('adminEditor') && MODULE_NAME == 'admin' ) { ?>
	<label class="textarea">
	    <textarea name="{$name}" id="{$id}">{$default}</textarea>
	    {:hook('adminEditor', array('id' => $id, 'value' => $default))}
	</label>
<?php } elseif ( \think\Hook::get('editor') ) { ?>
	<label class="textarea">
	    <textarea name="{$name}" id="{$id}">{$default}</textarea>
	    {:hook('editor', array('id'=>$id,'value'=>$default))}
	</label>
<?php } else { ?>
	<script type="text/plain" name="{$name}" id="{$id}" style="width:{$width};height:{$height};{$style}">{$default}</script>
	<script>
	    var  ue_{$id};
	    $(function(){
		    var config = {{$config},'topOffset':$('#nav_bar').height()+$('#sub_nav').height()+5};
		    ue_{$id} = UE.getEditor('{$id}', config);
	    })
	</script>
	<script type="text/javascript" charset="utf-8" src="__STATIC__/ueditor/ueditor.config.js"></script>
	<script type="text/javascript" charset="utf-8" src="__STATIC__/ueditor/ueditor.all.min.js"></script>
<?php } ?>